package com.fyzk.data;

import com.fyzk.activity.app.App;
import com.fyzk.bean.CurrentPhaseInfo;
import com.tyjc.lottery.R;
import com.fyzk.utils.L;
import com.fyzk.utils.LotteryIDUtils;

import java.util.HashSet;

import http.DataUtil.text.TextUtil;

public class AppLotteryInfos {


    public static HashSet<Integer> getcurrent_version_lotterys() {
        HashSet current_version_lotterys = new HashSet<>();

        current_version_lotterys.add(LotteryIDUtils.DLT_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.SSQ_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.FC3D_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.PL3_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.PL5_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.QXC_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.QLC_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.ZCRXJ_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.ZCSFC_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.ZCBQC_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.ZCJQC_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JZRFSPF_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JZBF_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JZZJQ_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JZBQC_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JZSPF_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JZHH_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JZDG_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JLDG_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JLSF_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JLRSF_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JLSFC_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JLDXF_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JLHH_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.GDKLSF_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.KLSF_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.CQSSC_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.GD11XUAN5_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.SD11XUAN5_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.XJ11XUAN5_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JSK3_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JLK3_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.ANHUIK3_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.NXK3_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.GXK3_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.KLPK_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.DCSPF_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.DCBF_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.DCZJQ_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.DCBQC_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.DCSXDS_LOTTERY_ID_INT);

        return current_version_lotterys;
    }

    public static HashSet<Integer> getcurrent_version11x5() {
        HashSet current_version_lotterys = new HashSet<>();
        current_version_lotterys.add(LotteryIDUtils.GD11XUAN5_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.SD11XUAN5_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.XJ11XUAN5_LOTTERY_ID_INT);
        return current_version_lotterys;
    }

    public static HashSet<Integer> getcurrent_versionk3() {
        HashSet current_version_lotterys = new HashSet<>();
        current_version_lotterys.add(LotteryIDUtils.JLK3_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JSK3_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.ANHUIK3_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.NXK3_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.GXK3_LOTTERY_ID_INT);

        return current_version_lotterys;
    }

    public static HashSet<Integer> getcurrent_versionklsf() {
        HashSet current_version_lotterys = new HashSet<>();

        current_version_lotterys.add(LotteryIDUtils.KLSF_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.GDKLSF_LOTTERY_ID_INT);
        return current_version_lotterys;
    }

    /**
     * 虚拟线彩种列表
     *
     * @return
     */
    public static HashSet<Integer> getVirtual_lotterys() {
        HashSet current_version_lotterys = new HashSet<>();

//        current_version_lotterys.add(LotteryIDUtils.DLT_LOTTERY_ID_INT);
//        current_version_lotterys.add(LotteryIDUtils.SSQ_LOTTERY_ID_INT);
//        current_version_lotterys.add(LotteryIDUtils.FC3D_LOTTERY_ID_INT);
//        current_version_lotterys.add(LotteryIDUtils.PL3_LOTTERY_ID_INT);
//        current_version_lotterys.add(LotteryIDUtils.PL5_LOTTERY_ID_INT);
//        current_version_lotterys.add(LotteryIDUtils.QXC_LOTTERY_ID_INT);
//        current_version_lotterys.add(LotteryIDUtils.QLC_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.KLSF_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.GDKLSF_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.CQSSC_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.GD11XUAN5_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.SD11XUAN5_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.XJ11XUAN5_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JLK3_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.JSK3_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.ANHUIK3_LOTTERY_ID_INT);
        current_version_lotterys.add(LotteryIDUtils.NXK3_LOTTERY_ID_INT);

        return current_version_lotterys;
    }


    public static int getLogoId(int lotteryType) {

        switch (lotteryType) {
            case LotteryIDUtils.DLT_LOTTERY_ID_INT:
                return R.drawable.main_daletou;
            case LotteryIDUtils.SSQ_LOTTERY_ID_INT:
                return R.drawable.main_ssq;
            case LotteryIDUtils.FC3D_LOTTERY_ID_INT:
                return R.drawable.main_3d;
            case LotteryIDUtils.PL3_LOTTERY_ID_INT:
                return R.drawable.main_pai3;
            case LotteryIDUtils.PL5_LOTTERY_ID_INT:
                return R.drawable.main_pai5;
            case LotteryIDUtils.QXC_LOTTERY_ID_INT:
                return R.drawable.main_qixingcai;
            case LotteryIDUtils.QLC_LOTTERY_ID_INT:
                return R.drawable.main_qlc;
            case LotteryIDUtils.JZHH_LOTTERY_ID_INT:
                return R.drawable.main_jczq;
            case LotteryIDUtils.JZSPF_LOTTERY_ID_INT:
                return R.drawable.main_jczq;
            case LotteryIDUtils.JZRFSPF_LOTTERY_ID_INT:
                return R.drawable.main_jczq;
            case LotteryIDUtils.JZBF_LOTTERY_ID_INT:
                return R.drawable.main_jczq;
            case LotteryIDUtils.JZZJQ_LOTTERY_ID_INT:
                return R.drawable.main_jczq;
            case LotteryIDUtils.JZBQC_LOTTERY_ID_INT:
                return R.drawable.main_jczq;
            case LotteryIDUtils.JZDG_LOTTERY_ID_INT:
                return R.drawable.main_jczqd;
            case LotteryIDUtils.JLDG_LOTTERY_ID_INT:
                return R.drawable.main_jclqd;
            case LotteryIDUtils.ZCSFC_LOTTERY_ID_INT:
                return R.drawable.main_sfc;
            case LotteryIDUtils.ZCRXJ_LOTTERY_ID_INT:
                return R.drawable.main_ren9;
            case LotteryIDUtils.ZCBQC_LOTTERY_ID_INT:
                return R.drawable.main_zc_bqc;
            case LotteryIDUtils.ZCJQC_LOTTERY_ID_INT:
                return R.drawable.main_zc_jqc;
            case LotteryIDUtils.SD11XUAN5_LOTTERY_ID_INT:
                return R.drawable.main_11x5;
            case LotteryIDUtils.GD11XUAN5_LOTTERY_ID_INT:
                return R.drawable.main_gd11x5;
            case LotteryIDUtils.XJ11XUAN5_LOTTERY_ID_INT:
                return R.drawable.main_xj11x5;
            case LotteryIDUtils.CQSSC_LOTTERY_ID_INT:
                return R.drawable.main_ssc;
            case LotteryIDUtils.NXK3_LOTTERY_ID_INT:
                return R.drawable.main_k3;
            case LotteryIDUtils.ANHUIK3_LOTTERY_ID_INT:
                return R.drawable.main_ahk3;
            case LotteryIDUtils.JSK3_LOTTERY_ID_INT:
                return R.drawable.main_jsk3;
            case LotteryIDUtils.JLK3_LOTTERY_ID_INT:
                return R.drawable.main_jlk3;
            case LotteryIDUtils.GXK3_LOTTERY_ID_INT:
                return R.drawable.main_gxk3;
            case LotteryIDUtils.DCBF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCBQC_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSPF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSXDS_LOTTERY_ID_INT:
            case LotteryIDUtils.DCZJQ_LOTTERY_ID_INT:
                return R.drawable.main_bd;
            case LotteryIDUtils.JLDXF_LOTTERY_ID_INT:
            case LotteryIDUtils.JLHH_LOTTERY_ID_INT:
            case LotteryIDUtils.JLRSF_LOTTERY_ID_INT:
            case LotteryIDUtils.JLSF_LOTTERY_ID_INT:
            case LotteryIDUtils.JLSFC_LOTTERY_ID_INT:
                return R.drawable.main_jclq;
            case LotteryIDUtils.KLSF_LOTTERY_ID_INT:
                return R.drawable.main_klsf;
            case LotteryIDUtils.GDKLSF_LOTTERY_ID_INT:
                return R.drawable.main_gdklsf;
            case LotteryIDUtils.KLPK_LOTTERY_ID_INT:
                return R.drawable.main_klpk;
        }
        return R.drawable.main_ssq;
    }


    public static StringBuffer period_buffer = new StringBuffer();

    public static String Ssq_Period = "";
    public static String Dlt_Period = "";
    public static String Pl5_Period = "";
    public static String Pl3_Period = "";
    public static String Fc3d_Period = "";
    public static String Qxc_Period = "";
    public static String Qlc_Period = "";
    public static String ZC_Period = "";
    public static String ZC_BQC_Period = "";
    public static String ZC_JQC_Period = "";
    public static String SD11xuan5_Period = "";
    public static String GD11xuan5_Period = "";
    public static String XJ11xuan5_Period = "";
    public static String GpSSC_Period = "";
    public static String NXK3_Period = "";
    public static String JSK3_Period = "";
    public static String JLK3_Period = "";
    public static String GXK3_Period = "";
    public static String AnHuiK3_Period = "";
    public static String BD_Period = "";
    public static String KLSF_Period = "";
    public static String GDKLSF_Period = "";
    public static String KLPK_Period = "";

    public static String SD11xuan5_Name = "";
    public static String GD11xuan5_Name = "";
    public static String XJ11xuan5_Name = "";
    public static String GpSSC_Name = "";
    public static String NXK3_Name = "";
    public static String JSK3_Name = "";
    public static String JLK3_Name = "";
    public static String GXK3_Name = "";
    public static String AnHuiK3_Name = "";
    public static String KLSF_Name = "";
    public static String GDKLSF_Name = "";
    public static String KLPK_Name = "";

    public static String Ssq_PeriodNew = "";
    public static String Dlt_PeriodNew = "";
    public static String Pl5_PeriodNew = "";
    public static String Pl3_PeriodNew = "";
    public static String Fc3d_PeriodNew = "";
    public static String Qxc_PeriodNew = "";
    public static String Qlc_PeriodNew = "";
    public static String ZC_PeriodNew = "";
    public static String ZC_BQC_PeriodNew = "";
    public static String ZC_JQC_PeriodNew = "";
    public static String Gp11xuan5_PeriodNew = "";
    public static String GD11xuan5_PeriodNew = "";
    public static String XJ11xuan5_PeriodNew = "";
    public static String GpSSC_PeriodNew = "";
    public static String NXK3_PeriodNew = "";
    public static String JSK3_PeriodNew = "";
    public static String JLK3_PeriodNew = "";
    public static String GXK3_PeriodNew = "";
    public static String AnHuiK3_PeriodNew = "";
    public static String BD_PeriodNew = "";
    public static String KLSF_PeriodNew = "";
    public static String GDKLSF_PeriodNew = "";
    public static String KLPK_PeriodNew = "";

    public static long Ssq_endTime = 0L;
    public static long Dlt_endTime = 0L;
    public static long Pl5_endTime = 0L;
    public static long Pl3_endTime = 0L;
    public static long Fc3d_endTime = 0L;
    public static long Qxc_endTime = 0L;
    public static long Qlc_endTime = 0L;
    public static long ZC_BQC_endTime = 0L;
    public static long ZC_JQC_endTime = 0L;
    public static long SD11xuan5_endTime = 0L;
    public static long GD11xuan5_endTime = 0L;
    public static long XJ11xuan5_endTime = 0L;
    public static long GpSSC_endTime = 0L;
    public static long NXK3_endTime = 0L;
    public static long JSK3_endTime = 0L;
    public static long JLK3_endTime = 0L;
    public static long GXK3_endTime = 0L;
    public static long AnHuiK3_endTime = 0L;
    public static long ZC_endTime = 0L;
    public static long KLSF_endTime = 0L;
    public static long GDKLSF_endTime = 0L;
    public static long BD_endTime = 0L;
    public static long KLPK_endTime = 0L;

    public static String Ssq_SellType = "";
    public static String Dlt_SellType = "";
    public static String Pl5_SellType = "";
    public static String Pl3_SellType = "";
    public static String Fc3d_SellType = "";
    public static String Qxc_SellType = "";
    public static String Qlc_SellType = "";
    public static String JC_SellType = "";
    public static String ZC_SellType = "";
    public static String ZC_BQC_SellType = "";
    public static String ZC_JQC_SellType = "";
    public static String Gp11xuan5_SellType = "";
    public static String GD11xuan5_SellType = "";
    public static String XJ11xuan5_SellType = "";
    public static String GpSSC_SellType = "";
    public static String NXK3_SellType = "";
    public static String JSK3_SellType = "";
    public static String JLK3_SellType = "";
    public static String GXK3_SellType = "";
    public static String AnHuiK3_SellType = "";
    public static String KLSF_SellType = "";
    public static String GDKLSF_SellType = "";
    public static String BD_SellType = "";
    public static String KLPK_SellType = "";

    private static String TAG = "AppLotteryInfos";

    public static void clear() {
        Ssq_endTime = 0L;
        Dlt_endTime = 0L;
        Fc3d_endTime = 0L;
        Pl5_endTime = 0L;
        Pl3_endTime = 0L;
        Qxc_endTime = 0L;
        ZC_endTime = 0L;
        SD11xuan5_endTime = 0L;
        GD11xuan5_endTime = 0L;
        XJ11xuan5_endTime = 0L;
        GpSSC_endTime = 0L;
        KLSF_endTime = 0L;
        GDKLSF_endTime = 0L;
        NXK3_endTime = 0L;
        JLK3_endTime = 0L;
        JSK3_endTime = 0L;
        AnHuiK3_endTime = 0L;
        BD_endTime = 0L;
        KLPK_endTime = 0L;
    }

    public static String getLotteryName(String lotteryID) {
        int lotteryId = 0;
        try {
            lotteryId = Integer.parseInt(lotteryID);
        } catch (Exception e) {
            // TODO: handle exception
        }
        return getLotteryName(lotteryId);
    }

    public static String getLotteryName(int lotteryID) {
        switch (lotteryID) {
            case LotteryIDUtils.DLT_LOTTERY_ID_INT:
                return App.getContext().getString(R.string.dlt);
            case LotteryIDUtils.SSQ_LOTTERY_ID_INT:
                return App.getContext().getString(R.string.ssq);
            case LotteryIDUtils.FC3D_LOTTERY_ID_INT:
                return App.getContext().getString(R.string.fc3d);
            case LotteryIDUtils.PL3_LOTTERY_ID_INT:
                return App.getContext().getString(R.string.pl3);
            case LotteryIDUtils.PL5_LOTTERY_ID_INT:
                return App.getContext().getString(R.string.pl5);
            case LotteryIDUtils.QXC_LOTTERY_ID_INT:
                return App.getContext().getString(R.string.qxc);
            case LotteryIDUtils.QLC_LOTTERY_ID_INT:
                return App.getContext().getString(R.string.qlc);
            // case LotteryIDUtils.ZCSFC_LOTTERY_ID_INT:
            // return R.string.sfc;
            // case LotteryIDUtils.ZCRXJ_LOTTERY_ID_INT:
            // return ZC_Period;
            case LotteryIDUtils.JZHH_LOTTERY_ID_INT:
            case LotteryIDUtils.JZSPF_LOTTERY_ID_INT:
            case LotteryIDUtils.JZRFSPF_LOTTERY_ID_INT:
            case LotteryIDUtils.JZBF_LOTTERY_ID_INT:
            case LotteryIDUtils.JZZJQ_LOTTERY_ID_INT:
            case LotteryIDUtils.JZSPFRSPF_LOTTERY_ID_INT:
            case LotteryIDUtils.JZBQC_LOTTERY_ID_INT:
                return App.getContext().getString(R.string.jcz);
            case LotteryIDUtils.JZDG_LOTTERY_ID_INT:
                return App.getContext().getString(R.string.jczdg);
            case LotteryIDUtils.JLDG_LOTTERY_ID_INT:
                return App.getContext().getString(R.string.jcldg);
            case LotteryIDUtils.ZCSFC_LOTTERY_ID_INT:
                return App.getContext().getString(R.string.zc_sfc);
            case LotteryIDUtils.ZCRXJ_LOTTERY_ID_INT:
                return App.getContext().getString(R.string.zc_rx9);
            case LotteryIDUtils.ZCBQC_LOTTERY_ID_INT:
                return App.getContext().getString(R.string.zc_bqc);
            case LotteryIDUtils.ZCJQC_LOTTERY_ID_INT:
                return App.getContext().getString(R.string.zc_jqc);
            case LotteryIDUtils.SD11XUAN5_LOTTERY_ID_INT:
                if (TextUtil.isEmpty(SD11xuan5_Name)) {
                    SD11xuan5_Name = App.getContext().getString(R.string.gp_11xuan5_toptitle);
                }
                return SD11xuan5_Name;
            case LotteryIDUtils.GD11XUAN5_LOTTERY_ID_INT:
                if (TextUtil.isEmpty(GD11xuan5_Name)) {
                    GD11xuan5_Name = App.getContext().getString(R.string.gd_11xuan5_toptitle);
                }
                return GD11xuan5_Name;
            case LotteryIDUtils.XJ11XUAN5_LOTTERY_ID_INT:
                if (TextUtil.isEmpty(XJ11xuan5_Name)) {
                    XJ11xuan5_Name = App.getContext().getString(R.string.xj_11xuan5_toptitle);
                }
                return XJ11xuan5_Name;
            case LotteryIDUtils.CQSSC_LOTTERY_ID_INT:
                if (TextUtil.isEmpty(GpSSC_Name)) {
                    GpSSC_Name = App.getContext().getString(R.string.gp_ssc);
                }
                return GpSSC_Name;
            case LotteryIDUtils.NXK3_LOTTERY_ID_INT:
                if (TextUtil.isEmpty(NXK3_Name)) {
                    NXK3_Name = App.getContext().getString(R.string.gp_nxk3);
                }
                return NXK3_Name;
            case LotteryIDUtils.ANHUIK3_LOTTERY_ID_INT:
                if (TextUtil.isEmpty(AnHuiK3_Name)) {
                    AnHuiK3_Name = App.getContext().getString(R.string.gp_anhuik3);
                }
                return AnHuiK3_Name;
            case LotteryIDUtils.JSK3_LOTTERY_ID_INT:
                if (TextUtil.isEmpty(JSK3_Name)) {
                    JSK3_Name = App.getContext().getString(R.string.gp_jsk3);
                }
                return JSK3_Name;
            case LotteryIDUtils.JLK3_LOTTERY_ID_INT:
                if (TextUtil.isEmpty(JLK3_Name)) {
                    JLK3_Name = App.getContext().getString(R.string.gp_jlk3);
                }
                return JLK3_Name;
            case LotteryIDUtils.GXK3_LOTTERY_ID_INT:
                if (TextUtil.isEmpty(GXK3_Name)) {
                    GXK3_Name = App.getContext().getString(R.string.gp_gxk3);
                }
                return GXK3_Name;
            case LotteryIDUtils.DCBF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCBQC_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSPF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSXDS_LOTTERY_ID_INT:
            case LotteryIDUtils.DCZJQ_LOTTERY_ID_INT:
                return App.getContext().getString(R.string.danchang);
            case LotteryIDUtils.JLDXF_LOTTERY_ID_INT:
            case LotteryIDUtils.JLHH_LOTTERY_ID_INT:
            case LotteryIDUtils.JLRSF_LOTTERY_ID_INT:
            case LotteryIDUtils.JLSF_LOTTERY_ID_INT:
            case LotteryIDUtils.JLSFC_LOTTERY_ID_INT:
                return App.getContext().getString(R.string.jclq);
            case LotteryIDUtils.KLSF_LOTTERY_ID_INT:
                if (TextUtil.isEmpty(KLSF_Name)) {
                    KLSF_Name = App.getContext().getString(R.string.klsf);
                }
                return KLSF_Name;
            case LotteryIDUtils.GDKLSF_LOTTERY_ID_INT:
                if (TextUtil.isEmpty(GDKLSF_Name)) {
                    GDKLSF_Name = App.getContext().getString(R.string.gdklsf);
                }
                return GDKLSF_Name;
            case LotteryIDUtils.KLPK_LOTTERY_ID_INT:
                if (TextUtil.isEmpty(KLPK_Name)) {
                    KLPK_Name = App.getContext().getString(R.string.gp_klpk);
                }
                return KLPK_Name;
        }
        return App.getContext().getString(R.string.qitacai);
    }


    public static void setLotteryName(int lotteryId, String lotteryName) {
        switch (lotteryId) {
            case LotteryIDUtils.SD11XUAN5_LOTTERY_ID_INT:
                SD11xuan5_Name = lotteryName;
                break;
            case LotteryIDUtils.GD11XUAN5_LOTTERY_ID_INT:
                GD11xuan5_Name = lotteryName;
                break;
            case LotteryIDUtils.XJ11XUAN5_LOTTERY_ID_INT:
                XJ11xuan5_Name = lotteryName;
                break;
            case LotteryIDUtils.CQSSC_LOTTERY_ID_INT:
                GpSSC_Name = lotteryName;
                break;
            case LotteryIDUtils.NXK3_LOTTERY_ID_INT:
                NXK3_Name = lotteryName;
                break;
            case LotteryIDUtils.ANHUIK3_LOTTERY_ID_INT:
                AnHuiK3_Name = lotteryName;
                break;
            case LotteryIDUtils.JSK3_LOTTERY_ID_INT:
                JSK3_Name = lotteryName;
                break;
            case LotteryIDUtils.JLK3_LOTTERY_ID_INT:
                JLK3_Name = lotteryName;
                break;
            case LotteryIDUtils.GXK3_LOTTERY_ID_INT:
                GXK3_Name = lotteryName;
                break;
            case LotteryIDUtils.KLSF_LOTTERY_ID_INT:
                KLSF_Name = lotteryName;
                break;
            case LotteryIDUtils.GDKLSF_LOTTERY_ID_INT:
                GDKLSF_Name = lotteryName;
                break;
            case LotteryIDUtils.KLPK_LOTTERY_ID_INT:
                KLPK_Name = lotteryName;
                break;
        }
    }


    public static String getPeriod(int lotteryId) {
        switch (lotteryId) {
            case LotteryIDUtils.SSQ_LOTTERY_ID_INT:
                return Ssq_Period;
            case LotteryIDUtils.DLT_LOTTERY_ID_INT:
                return Dlt_Period;
            case LotteryIDUtils.QXC_LOTTERY_ID_INT:
                return Qxc_Period;
            case LotteryIDUtils.QLC_LOTTERY_ID_INT:
                return Qlc_Period;
            case LotteryIDUtils.PL5_LOTTERY_ID_INT:
                return Pl5_Period;
            case LotteryIDUtils.PL3_LOTTERY_ID_INT:
                return Pl3_Period;
            case LotteryIDUtils.FC3D_LOTTERY_ID_INT:
                return Fc3d_Period;
            case LotteryIDUtils.ZCSFC_LOTTERY_ID_INT:
            case LotteryIDUtils.ZCRXJ_LOTTERY_ID_INT:
                return ZC_Period;
            case LotteryIDUtils.ZCBQC_LOTTERY_ID_INT:
                return ZC_BQC_Period;
            case LotteryIDUtils.ZCJQC_LOTTERY_ID_INT:
                return ZC_JQC_Period;
            case LotteryIDUtils.SD11XUAN5_LOTTERY_ID_INT:
                return SD11xuan5_Period;
            case LotteryIDUtils.GD11XUAN5_LOTTERY_ID_INT:
                return GD11xuan5_Period;
            case LotteryIDUtils.XJ11XUAN5_LOTTERY_ID_INT:
                return XJ11xuan5_Period;
            case LotteryIDUtils.CQSSC_LOTTERY_ID_INT:
                return GpSSC_Period;
            case LotteryIDUtils.NXK3_LOTTERY_ID_INT:
                return NXK3_Period;
            case LotteryIDUtils.ANHUIK3_LOTTERY_ID_INT:
                return AnHuiK3_Period;
            case LotteryIDUtils.JSK3_LOTTERY_ID_INT:
                return JSK3_Period;
            case LotteryIDUtils.JLK3_LOTTERY_ID_INT:
                return JLK3_Period;
            case LotteryIDUtils.GXK3_LOTTERY_ID_INT:
                return GXK3_Period;
            case LotteryIDUtils.DCBF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCBQC_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSPF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSXDS_LOTTERY_ID_INT:
            case LotteryIDUtils.DCZJQ_LOTTERY_ID_INT:
                return BD_Period;
            case LotteryIDUtils.KLSF_LOTTERY_ID_INT:
                return KLSF_Period;
            case LotteryIDUtils.GDKLSF_LOTTERY_ID_INT:
                return GDKLSF_Period;
            case LotteryIDUtils.KLPK_LOTTERY_ID_INT:
                return KLPK_Period;
        }
        return "";
    }

    public static String getPeriodNew(int lotteryId) {
        switch (lotteryId) {
            case LotteryIDUtils.SSQ_LOTTERY_ID_INT:
                return Ssq_PeriodNew;
            case LotteryIDUtils.DLT_LOTTERY_ID_INT:
                return Dlt_PeriodNew;
            case LotteryIDUtils.QXC_LOTTERY_ID_INT:
                return Qxc_PeriodNew;
            case LotteryIDUtils.QLC_LOTTERY_ID_INT:
                return Qlc_PeriodNew;
            case LotteryIDUtils.PL5_LOTTERY_ID_INT:
                return Pl5_PeriodNew;
            case LotteryIDUtils.PL3_LOTTERY_ID_INT:
                return Pl3_PeriodNew;
            case LotteryIDUtils.FC3D_LOTTERY_ID_INT:
                return Fc3d_PeriodNew;
            case LotteryIDUtils.ZCSFC_LOTTERY_ID_INT:
            case LotteryIDUtils.ZCRXJ_LOTTERY_ID_INT:
                return ZC_PeriodNew;
            case LotteryIDUtils.ZCBQC_LOTTERY_ID_INT:
                return ZC_BQC_PeriodNew;
            case LotteryIDUtils.ZCJQC_LOTTERY_ID_INT:
                return ZC_JQC_PeriodNew;
            case LotteryIDUtils.SD11XUAN5_LOTTERY_ID_INT:
                return Gp11xuan5_PeriodNew;
            case LotteryIDUtils.GD11XUAN5_LOTTERY_ID_INT:
                return GD11xuan5_PeriodNew;
            case LotteryIDUtils.XJ11XUAN5_LOTTERY_ID_INT:
                return XJ11xuan5_PeriodNew;
            case LotteryIDUtils.CQSSC_LOTTERY_ID_INT:
                return GpSSC_PeriodNew;
            case LotteryIDUtils.NXK3_LOTTERY_ID_INT:
                return NXK3_PeriodNew;
            case LotteryIDUtils.JSK3_LOTTERY_ID_INT:
                return JSK3_PeriodNew;
            case LotteryIDUtils.JLK3_LOTTERY_ID_INT:
                return JLK3_PeriodNew;
            case LotteryIDUtils.GXK3_LOTTERY_ID_INT:
                return GXK3_PeriodNew;
            case LotteryIDUtils.ANHUIK3_LOTTERY_ID_INT:
                return AnHuiK3_PeriodNew;
            case LotteryIDUtils.DCBF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCBQC_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSPF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSXDS_LOTTERY_ID_INT:
            case LotteryIDUtils.DCZJQ_LOTTERY_ID_INT:
                return BD_PeriodNew;
            case LotteryIDUtils.KLSF_LOTTERY_ID_INT:
                return KLSF_PeriodNew;
            case LotteryIDUtils.GDKLSF_LOTTERY_ID_INT:
                return GDKLSF_PeriodNew;
            case LotteryIDUtils.KLPK_LOTTERY_ID_INT:
                return KLPK_PeriodNew;
        }
        return "--";
    }

    /**
     * 判断是高频
     *
     * @param lotteryId
     * @return
     */
    public static boolean isGaoPin(int lotteryId) {
        switch (lotteryId) {
            case LotteryIDUtils.SD11XUAN5_LOTTERY_ID_INT:
            case LotteryIDUtils.GD11XUAN5_LOTTERY_ID_INT:
            case LotteryIDUtils.XJ11XUAN5_LOTTERY_ID_INT:
            case LotteryIDUtils.CQSSC_LOTTERY_ID_INT:
            case LotteryIDUtils.NXK3_LOTTERY_ID_INT:
            case LotteryIDUtils.JSK3_LOTTERY_ID_INT:
            case LotteryIDUtils.JLK3_LOTTERY_ID_INT:
            case LotteryIDUtils.GXK3_LOTTERY_ID_INT:
            case LotteryIDUtils.ANHUIK3_LOTTERY_ID_INT:
            case LotteryIDUtils.KLSF_LOTTERY_ID_INT:
            case LotteryIDUtils.GDKLSF_LOTTERY_ID_INT:
            case LotteryIDUtils.KLPK_LOTTERY_ID_INT:
                return true;
        }
        return false;
    }

    /**
     * 判断是数字彩
     *
     * @param lotteryId
     * @return
     */
    public static boolean isNumLottery(int lotteryId) {
        switch (lotteryId) {
            case LotteryIDUtils.JZBF_LOTTERY_ID_INT:
            case LotteryIDUtils.JZBQC_LOTTERY_ID_INT:
            case LotteryIDUtils.JZHH_LOTTERY_ID_INT:
            case LotteryIDUtils.JZRFSPF_LOTTERY_ID_INT:
            case LotteryIDUtils.JZSPF_LOTTERY_ID_INT:
            case LotteryIDUtils.JZZJQ_LOTTERY_ID_INT:
            case LotteryIDUtils.JZDG_LOTTERY_ID_INT:
            case LotteryIDUtils.JLDG_LOTTERY_ID_INT:
            case LotteryIDUtils.JLDXF_LOTTERY_ID_INT:
            case LotteryIDUtils.JLHH_LOTTERY_ID_INT:
            case LotteryIDUtils.JLRSF_LOTTERY_ID_INT:
            case LotteryIDUtils.JLSF_LOTTERY_ID_INT:
            case LotteryIDUtils.JLSFC_LOTTERY_ID_INT:
            case LotteryIDUtils.ZCBQC_LOTTERY_ID_INT:
            case LotteryIDUtils.ZCJQC_LOTTERY_ID_INT:
            case LotteryIDUtils.ZCRXJ_LOTTERY_ID_INT:
            case LotteryIDUtils.ZCSFC_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSPF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCBF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCZJQ_LOTTERY_ID_INT:
            case LotteryIDUtils.DCBQC_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSXDS_LOTTERY_ID_INT:
                return false;
            default:
                return true;
        }
    }

    /**
     * 判断是竞彩
     *
     * @param lotteryId
     * @return
     */
    public static boolean isJC(int lotteryId) {
        switch (lotteryId) {
            case LotteryIDUtils.JZBF_LOTTERY_ID_INT:
            case LotteryIDUtils.JZBQC_LOTTERY_ID_INT:
            case LotteryIDUtils.JZHH_LOTTERY_ID_INT:
            case LotteryIDUtils.JZRFSPF_LOTTERY_ID_INT:
            case LotteryIDUtils.JZSPF_LOTTERY_ID_INT:
            case LotteryIDUtils.JZZJQ_LOTTERY_ID_INT:
            case LotteryIDUtils.JZDG_LOTTERY_ID_INT:
            case LotteryIDUtils.JLDG_LOTTERY_ID_INT:
            case LotteryIDUtils.JLDXF_LOTTERY_ID_INT:
            case LotteryIDUtils.JLHH_LOTTERY_ID_INT:
            case LotteryIDUtils.JLRSF_LOTTERY_ID_INT:
            case LotteryIDUtils.JLSF_LOTTERY_ID_INT:
            case LotteryIDUtils.JLSFC_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSPF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCBF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCZJQ_LOTTERY_ID_INT:
            case LotteryIDUtils.DCBQC_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSXDS_LOTTERY_ID_INT:
                return true;
            default:
                return false;
        }
    }

    /**
     * 判断是足彩半全场、进球彩、任九场、胜负彩、
     *
     * @param lotteryId
     * @return
     */
    public static boolean isOldFootballLottery(int lotteryId) {
        switch (lotteryId) {
            case LotteryIDUtils.ZCBQC_LOTTERY_ID_INT:
            case LotteryIDUtils.ZCJQC_LOTTERY_ID_INT:
            case LotteryIDUtils.ZCRXJ_LOTTERY_ID_INT:
            case LotteryIDUtils.ZCSFC_LOTTERY_ID_INT:
                return true;
            default:
                return false;
        }
    }


    public static void setPeriod(int lotteryId, String period) {
        switch (lotteryId) {
            case LotteryIDUtils.SSQ_LOTTERY_ID_INT:
                Ssq_Period = period;
                break;
            case LotteryIDUtils.DLT_LOTTERY_ID_INT:
                Dlt_Period = period;
                break;
            case LotteryIDUtils.QXC_LOTTERY_ID_INT:
                Qxc_Period = period;
                break;
            case LotteryIDUtils.QLC_LOTTERY_ID_INT:
                Qlc_Period = period;
                break;
            case LotteryIDUtils.PL5_LOTTERY_ID_INT:
                Pl5_Period = period;
                break;
            case LotteryIDUtils.PL3_LOTTERY_ID_INT:
                Pl3_Period = period;
                break;
            case LotteryIDUtils.FC3D_LOTTERY_ID_INT:
                Fc3d_Period = period;
                break;
            case LotteryIDUtils.ZCSFC_LOTTERY_ID_INT:
            case LotteryIDUtils.ZCRXJ_LOTTERY_ID_INT:
                ZC_Period = period;
                break;
            case LotteryIDUtils.ZCBQC_LOTTERY_ID_INT:
                ZC_BQC_Period = period;
                break;
            case LotteryIDUtils.ZCJQC_LOTTERY_ID_INT:
                ZC_JQC_Period = period;
                break;
            case LotteryIDUtils.SD11XUAN5_LOTTERY_ID_INT:
                SD11xuan5_Period = period;
                break;
            case LotteryIDUtils.GD11XUAN5_LOTTERY_ID_INT:
                GD11xuan5_Period = period;
                break;
            case LotteryIDUtils.XJ11XUAN5_LOTTERY_ID_INT:
                XJ11xuan5_Period = period;
                break;
            case LotteryIDUtils.CQSSC_LOTTERY_ID_INT:
                GpSSC_Period = period;
                break;
            case LotteryIDUtils.NXK3_LOTTERY_ID_INT:
                NXK3_Period = period;
                break;
            case LotteryIDUtils.JSK3_LOTTERY_ID_INT:
                JSK3_Period = period;
                break;
            case LotteryIDUtils.JLK3_LOTTERY_ID_INT:
                JLK3_Period = period;
                break;
            case LotteryIDUtils.GXK3_LOTTERY_ID_INT:
                GXK3_Period = period;
                break;
            case LotteryIDUtils.ANHUIK3_LOTTERY_ID_INT:
                AnHuiK3_Period = period;
                break;
            case LotteryIDUtils.KLSF_LOTTERY_ID_INT:
                KLSF_Period = period;
                break;
            case LotteryIDUtils.GDKLSF_LOTTERY_ID_INT:
                GDKLSF_Period = period;
                break;
            case LotteryIDUtils.DCBF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCBQC_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSPF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSXDS_LOTTERY_ID_INT:
            case LotteryIDUtils.DCZJQ_LOTTERY_ID_INT:
                BD_Period = period;
                break;
            case LotteryIDUtils.KLPK_LOTTERY_ID_INT:
                KLPK_Period = period;
                break;
        }
    }

    public static void setCurrentPrizeInfo(CurrentPhaseInfo info) {
        long time = info.getLeftSeconds() * 1000;
        int lotteryId = info.getLotteryType();
        String period = info.getPhase();
        setEndTime(lotteryId, time);
//		setSellType(lotteryId,info.get);
        setPeriod(lotteryId, period);
    }

    public static void setEndTime(int lotteryId, long time) {
        switch (lotteryId) {
            case LotteryIDUtils.SSQ_LOTTERY_ID_INT:
                Ssq_endTime = time;
                break;
            case LotteryIDUtils.DLT_LOTTERY_ID_INT:
                Dlt_endTime = time;
                break;
            case LotteryIDUtils.QLC_LOTTERY_ID_INT:
                Qlc_endTime = time;
                break;
            case LotteryIDUtils.QXC_LOTTERY_ID_INT:
                Qxc_endTime = time;
                break;
            case LotteryIDUtils.PL5_LOTTERY_ID_INT:
                Pl5_endTime = time;
                break;
            case LotteryIDUtils.PL3_LOTTERY_ID_INT:
                Pl3_endTime = time;
                break;
            case LotteryIDUtils.FC3D_LOTTERY_ID_INT:
                L.v(TAG, "FC3D" + time);
                Fc3d_endTime = time;
                break;
            case LotteryIDUtils.ZCSFC_LOTTERY_ID_INT:
            case LotteryIDUtils.ZCRXJ_LOTTERY_ID_INT:
                ZC_endTime = time;
                break;
            case LotteryIDUtils.ZCBQC_LOTTERY_ID_INT:
                ZC_BQC_endTime = time;
                break;
            case LotteryIDUtils.ZCJQC_LOTTERY_ID_INT:
                ZC_JQC_endTime = time;
                break;
            case LotteryIDUtils.SD11XUAN5_LOTTERY_ID_INT:
                SD11xuan5_endTime = time;
                break;
            case LotteryIDUtils.GD11XUAN5_LOTTERY_ID_INT:
                GD11xuan5_endTime = time;
                break;
            case LotteryIDUtils.XJ11XUAN5_LOTTERY_ID_INT:
                XJ11xuan5_endTime = time;
                break;
            case LotteryIDUtils.CQSSC_LOTTERY_ID_INT:
                GpSSC_endTime = time;
                break;
            case LotteryIDUtils.NXK3_LOTTERY_ID_INT:
                NXK3_endTime = time;
                break;
            case LotteryIDUtils.JSK3_LOTTERY_ID_INT:
                JSK3_endTime = time;
                break;
            case LotteryIDUtils.JLK3_LOTTERY_ID_INT:
                JLK3_endTime = time;
                break;
            case LotteryIDUtils.GXK3_LOTTERY_ID_INT:
                GXK3_endTime = time;
                break;
            case LotteryIDUtils.ANHUIK3_LOTTERY_ID_INT:
                AnHuiK3_endTime = time;
                break;
            case LotteryIDUtils.KLSF_LOTTERY_ID_INT:
                KLSF_endTime = time;
                break;
            case LotteryIDUtils.GDKLSF_LOTTERY_ID_INT:
                GDKLSF_endTime = time;
                break;
            case LotteryIDUtils.DCBF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCBQC_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSPF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSXDS_LOTTERY_ID_INT:
            case LotteryIDUtils.DCZJQ_LOTTERY_ID_INT:
                BD_endTime = time;
                break;
            case LotteryIDUtils.KLPK_LOTTERY_ID_INT:
                KLPK_endTime = time;
                break;
        }
    }

    public static long getEndTime(int lotteryId) {
        switch (lotteryId) {
            case LotteryIDUtils.SSQ_LOTTERY_ID_INT:
                return Ssq_endTime;
            case LotteryIDUtils.DLT_LOTTERY_ID_INT:
                return Dlt_endTime;
            case LotteryIDUtils.QXC_LOTTERY_ID_INT:
                return Qxc_endTime;
            case LotteryIDUtils.QLC_LOTTERY_ID_INT:
                return Qlc_endTime;
            case LotteryIDUtils.PL5_LOTTERY_ID_INT:
                return Pl5_endTime;
            case LotteryIDUtils.PL3_LOTTERY_ID_INT:
                return Pl3_endTime;
            case LotteryIDUtils.FC3D_LOTTERY_ID_INT:
                return Fc3d_endTime;
            case LotteryIDUtils.ZCSFC_LOTTERY_ID_INT:
            case LotteryIDUtils.ZCRXJ_LOTTERY_ID_INT:
                return ZC_endTime;
            case LotteryIDUtils.ZCBQC_LOTTERY_ID_INT:
                return ZC_BQC_endTime;
            case LotteryIDUtils.ZCJQC_LOTTERY_ID_INT:
                return ZC_JQC_endTime;
            case LotteryIDUtils.SD11XUAN5_LOTTERY_ID_INT:
                return SD11xuan5_endTime;
            case LotteryIDUtils.GD11XUAN5_LOTTERY_ID_INT:
                return GD11xuan5_endTime;
            case LotteryIDUtils.XJ11XUAN5_LOTTERY_ID_INT:
                return XJ11xuan5_endTime;
            case LotteryIDUtils.CQSSC_LOTTERY_ID_INT:
                return GpSSC_endTime;
            case LotteryIDUtils.NXK3_LOTTERY_ID_INT:
                return NXK3_endTime;
            case LotteryIDUtils.JSK3_LOTTERY_ID_INT:
                return JSK3_endTime;
            case LotteryIDUtils.JLK3_LOTTERY_ID_INT:
                return JLK3_endTime;
            case LotteryIDUtils.GXK3_LOTTERY_ID_INT:
                return GXK3_endTime;
            case LotteryIDUtils.ANHUIK3_LOTTERY_ID_INT:
                return AnHuiK3_endTime;
            case LotteryIDUtils.KLSF_LOTTERY_ID_INT:
                return KLSF_endTime;
            case LotteryIDUtils.GDKLSF_LOTTERY_ID_INT:
                return GDKLSF_endTime;
            case LotteryIDUtils.DCBF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCBQC_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSPF_LOTTERY_ID_INT:
            case LotteryIDUtils.DCSXDS_LOTTERY_ID_INT:
            case LotteryIDUtils.DCZJQ_LOTTERY_ID_INT:
                return BD_endTime;
            case LotteryIDUtils.KLPK_LOTTERY_ID_INT:
                return KLPK_endTime;
        }
        return Fc3d_endTime;
    }


    /**
     * 获取 请求遗漏 所需的 key  (走势图用)
     *
     * @param lotteryId
     * @param popupId
     * @return
     */
    public static String getMissKey(int lotteryId, int popupId) {
        String key = "";
        switch (lotteryId) {
            case LotteryIDUtils.SSQ_LOTTERY_ID_INT:
                return "1001MV_X";
            case LotteryIDUtils.DLT_LOTTERY_ID_INT:
                return "2001MV_X";
            case LotteryIDUtils.QXC_LOTTERY_ID_INT:
                return "2004MV_ZX";
            case LotteryIDUtils.QLC_LOTTERY_ID_INT:
                return "1003MV_X";
            case LotteryIDUtils.PL5_LOTTERY_ID_INT:
                return "2003MV_ZX";
            case LotteryIDUtils.PL3_LOTTERY_ID_INT:
                return "2002MV_ZX";
            case LotteryIDUtils.FC3D_LOTTERY_ID_INT:
                return "1002MV_ZX";
            case LotteryIDUtils.SD11XUAN5_LOTTERY_ID_INT:
            case LotteryIDUtils.GD11XUAN5_LOTTERY_ID_INT:
            case LotteryIDUtils.XJ11XUAN5_LOTTERY_ID_INT:
                switch (popupId) {
                    case 0:     // 任选 2 - 任选8
                    case 1:
                    case 2:
                    case 3:
                    case 4:
                    case 5:
                    case 6:
                    case 12:    // 任选2胆拖 - 任选7胆拖
                    case 13:
                    case 14:
                    case 15:
                    case 16:
                    case 17:
                        return lotteryId + "MV_RX";
                    case 7:     // 前一
                        return lotteryId + "MV_Q1";
                    case 8:     // 前二直选
                        return lotteryId + "MV_Q2";
                    case 9:     // 前二组选
                    case 18:    // 前二组选胆拖
                        return lotteryId + "MV_Q2Z";
                    case 10:    // 前三直选
                        return lotteryId + "MV_Q3";
                    case 11:    // 前三组选
                    case 19:    // 前三组选胆拖
                        return lotteryId + "MV_Q3Z";
                }
            case LotteryIDUtils.NXK3_LOTTERY_ID_INT:
            case LotteryIDUtils.ANHUIK3_LOTTERY_ID_INT:
            case LotteryIDUtils.JSK3_LOTTERY_ID_INT:
            case LotteryIDUtils.JLK3_LOTTERY_ID_INT:
            case LotteryIDUtils.GXK3_LOTTERY_ID_INT:
                return lotteryId + "MV_00";
            case LotteryIDUtils.KLSF_LOTTERY_ID_INT:
            case LotteryIDUtils.GDKLSF_LOTTERY_ID_INT:
                switch (popupId) {
                    case 0:
                        return lotteryId + "MV_S1";
                    case 1:
                        return lotteryId + "MV_H1";
                    case 2:
                    case 3:
                    case 4:
                    case 5:
                    case 6:
                    case 7:
                    case 8:
                    case 9:
                    case 10:
                    case 11:
                    case 12:
                        return lotteryId + "MV_RX";
                }
            case LotteryIDUtils.CQSSC_LOTTERY_ID_INT:   // 时时彩待定。。。
                switch (popupId) {
                    case 0:
                    case 1:
                    case 3:
                    case 7:
                    case 8:
                    case 9:
                        return lotteryId + "MV_5X";
                    case 2:
                        return lotteryId + "MV_2ZX";
                    case 4:
                    case 5:
                    case 6:
                        return lotteryId + "MV_Z36";
                }
            case LotteryIDUtils.KLPK_LOTTERY_ID_INT:
                switch (popupId) {
                    case 0:
                    case 1:
                    case 2:
                    case 3:
                    case 4:
                    case 5:
                        return lotteryId + "MV_RX";
                    case 6:
                        return lotteryId + "MV_DZ";
                    case 7:
                        return lotteryId + "MV_BZ";
                    case 8:
                        return lotteryId + "MV_SZ";
                    case 9:
                        return lotteryId + "MV_TH";
                    case 10:
                        return lotteryId + "MV_HS";
                    case 11:
                    case 12:
                    case 13:
                    case 14:
                    case 15:
                        return lotteryId + "MV_RX";
                }
        }

        return key;
    }

    /**
     * 获取 请求遗漏 所需的 冷热key    （走势图用）
     *
     * @param lotteryId
     * @param popupId
     * @return
     */
    public static String getHCKey(int lotteryId, int popupId) {
        switch (lotteryId) {
            case LotteryIDUtils.GXK3_LOTTERY_ID_INT:
            case LotteryIDUtils.NXK3_LOTTERY_ID_INT:
            case LotteryIDUtils.ANHUIK3_LOTTERY_ID_INT:
            case LotteryIDUtils.JSK3_LOTTERY_ID_INT:
            case LotteryIDUtils.JLK3_LOTTERY_ID_INT:
                if (popupId == 0) {
                    return lotteryId + "HC_60";
                } else {
                    return lotteryId + "HC_00";
                }
            default:
                String key = getMissKey(lotteryId, popupId);
                if (key.contains("MV")) {
                    key = key.replace("MV", "HC");
                }
                return key;
        }

    }

    public static String getMissKey2(int lotteryId, int popupId) {
        String key = "";
        switch (lotteryId) {
            case LotteryIDUtils.SSQ_LOTTERY_ID_INT:
                return "1001MV_X";
            case LotteryIDUtils.DLT_LOTTERY_ID_INT:
                return "2001MV_X";
            case LotteryIDUtils.QXC_LOTTERY_ID_INT:
                return "2004MV_ZX";
            case LotteryIDUtils.QLC_LOTTERY_ID_INT:
                return "1003MV_X";
            case LotteryIDUtils.PL5_LOTTERY_ID_INT:
                return "2003MV_ZX";
            case LotteryIDUtils.PL3_LOTTERY_ID_INT:
                return "2002MV_ZX";
            case LotteryIDUtils.FC3D_LOTTERY_ID_INT:
                return "1002MV_ZX";
            case LotteryIDUtils.SD11XUAN5_LOTTERY_ID_INT:
            case LotteryIDUtils.GD11XUAN5_LOTTERY_ID_INT:
            case LotteryIDUtils.XJ11XUAN5_LOTTERY_ID_INT:
                switch (popupId) {
                    case 0:     // 任选 2 - 任选8
                    case 1:
                    case 2:
                    case 3:
                    case 4:
                    case 5:
                    case 6:
                    case 12:    // 任选2胆拖 - 任选7胆拖
                    case 13:
                    case 14:
                    case 15:
                    case 16:
                    case 17:
                        return lotteryId + "MV_RX";
                    case 7:     // 前一
                        return lotteryId + "MV_Q1";
                    case 8:     // 前二直选
                        return lotteryId + "MV_Q2";
                    case 9:     // 前二组选
                    case 18:    // 前二组选胆拖
                        return lotteryId + "MV_Q2Z";
                    case 10:    // 前三直选
                        return lotteryId + "MV_Q3";
                    case 11:    // 前三组选
                    case 19:    // 前三组选胆拖
                        return lotteryId + "MV_Q3Z";
                }
            case LotteryIDUtils.NXK3_LOTTERY_ID_INT:
            case LotteryIDUtils.ANHUIK3_LOTTERY_ID_INT:
            case LotteryIDUtils.JSK3_LOTTERY_ID_INT:
            case LotteryIDUtils.JLK3_LOTTERY_ID_INT:
            case LotteryIDUtils.GXK3_LOTTERY_ID_INT:
                switch (popupId) {
                    case 0:     // 和值
                        return lotteryId + "MV_60";
                    case 1:     // 三同号
                    case 3:     // 三不同号
                    case 5:
                        return lotteryId + "MV_62";
                    case 2:     // 二同号
                        return lotteryId + "MV_11";
                    case 4:     // 二不同号
                    case 6:
                        return lotteryId + "MV_61";
                }
            case LotteryIDUtils.KLSF_LOTTERY_ID_INT:
            case LotteryIDUtils.GDKLSF_LOTTERY_ID_INT:
                switch (popupId) {
                    case 0:
                        return lotteryId + "MV_S1";
                    case 1:
                        return lotteryId + "MV_H1";
                    case 2:
                    case 3:
                    case 4:
                    case 5:
                    case 6:
                    case 7:
                    case 8:
                    case 9:
                    case 10:
                    case 11:
                    case 12:
                        return lotteryId + "MV_RX";
                }
            case LotteryIDUtils.CQSSC_LOTTERY_ID_INT:   // 时时彩待定。。。
                switch (popupId) {
                    case 0:
                    case 1:
                    case 3:
                    case 7:
                    case 8:
                    case 9:
                        return lotteryId + "MV_5X";
                    case 2:
                        return lotteryId + "MV_2ZX";
                    case 4:
                    case 5:
                    case 6:
                        return lotteryId + "MV_Z36";
                }
            case LotteryIDUtils.KLPK_LOTTERY_ID_INT:
                switch (popupId) {
                    case 0:
                    case 1:
                    case 2:
                    case 3:
                    case 4:
                    case 5:
                        return lotteryId + "MV_RX";
                    case 6:
                        return lotteryId + "MV_DZ";
                    case 7:
                        return lotteryId + "MV_BZ";
                    case 8:
                        return lotteryId + "MV_SZ";
                    case 9:
                        return lotteryId + "MV_TH";
                    case 10:
                        return lotteryId + "MV_HS";
                    case 11:
                    case 12:
                    case 13:
                    case 14:
                    case 15:
                        return lotteryId + "MV_RX";
                }

        }

        return key;
    }


}
